<!--#include file="functions.asp" -->
<% 
//set cn = Server.Createobject("ADODB.Connection")
//cn.Open "MP2ENTTEST2", "MP2", "MP2"

sql = "SELECT DEPARTMENT FROM EMP WHERE EMAIL='"& usrName & "@" & emailDomain & "'"
set rs=cn.execute(sql)
if rs.eof then 
response.redirect "restrict.asp"
else
UsrLevel = rs("DEPARTMENT")
end if
set rs=nothing

if (UsrLevel <> "FINANCE") and (UsrLevel <> "IT") then
response.redirect "restrict.asp"
end if
 %>
<SCRIPT RUNAT=SERVER LANGUAGE=VBSCRIPT>					
function DoDateTime(str, nNamedFormat, nLCID)				
	dim strRet								
	dim nOldLCID								
										
	strRet = str								
	If (nLCID > -1) Then							
		oldLCID = Session.LCID						
	End If									
										
	On Error Resume Next							
										
	If (nLCID > -1) Then							
		Session.LCID = nLCID						
	End If									
										
	If ((nLCID < 0) Or (Session.LCID = nLCID)) Then				
		strRet = FormatDateTime(str, nNamedFormat)			
	End If									
										
	If (nLCID > -1) Then							
		Session.LCID = oldLCID						
	End If									
										
	DoDateTime = strRet							
End Function									
</SCRIPT>
<SCRIPT Language="JavaScript">
function DocLoad(){

}

</SCRIPT>
<!--#include file="PageTop.asp" -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#93bee2">
  <tr> 
    <td width="4%">&nbsp;</td>
    <td width="2%">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td width="4%">&nbsp;</td>
    <td width="2%">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td width="4%">&nbsp;</td>
    <td width="2%" bgcolor="#FFFFFF"><img src="images/curv_data.gif" width="21" height="21"></td>
    <td bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
  <tr> 
    <td width="4%">&nbsp;</td>
    <td width="2%" bgcolor="#FFFFFF">&nbsp;</td>
    <td bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
  <tr> 
    <td width="4%" height="339">&nbsp;</td>
    <td width="2%" bgcolor="#FFFFFF" height="339">&nbsp;</td>
    <td bgcolor="#FFFFFF" height="339"> 
      <table width="50%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="4%" height="25" bgcolor="#003399">&nbsp;</td>
          <td width="93%" bgcolor="#003399" height="25"><font color="#003399"><b><font color="#FFFFFF">Administration 
            Page </font></b></font></td>
          <td width="3%" height="25" bgcolor="#003399">&nbsp;</td>
        </tr>
      </table>
      <br>
      <table width="50%" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td height="24" width="6%" bgcolor="#dde7ff"><font color="#000000"></font></td>
          <td height="24" colspan="2" bgcolor="#dde7ff"><b><font color="#000000">Administration</font></b></td>
        </tr>
        <tr> 
          <td height="11" width="6%">&nbsp;</td>
          <td height="11" width="5%">&nbsp;</td>
          <td height="11" width="89%">&nbsp;</td>
        </tr>
        <tr> 
          <td height="24" width="6%">&nbsp;</td>
          <td height="24" width="5%">&nbsp;</td>
          <td height="24" width="89%"><b><a href="AdmUser.asp?usrName=<%=request.Querystring("usrName")%>&pwd=<%= Request.QueryString("pwd") %>">User 
            &amp; Security Administration</a></b></td>
        </tr>
        <tr> 
          <td height="24" width="6%">&nbsp;</td>
          <td height="24" width="5%">&nbsp;</td>
          <td height="24" width="89%">Configure user information and security 
            for each user</td>
        </tr>
        <tr> 
          <td height="11" width="6%">&nbsp;</td>
          <td height="11" width="5%">&nbsp;</td>
          <td height="11" width="89%">&nbsp;</td>
        </tr>
        <tr> 
          <td height="24" width="6%">&nbsp;</td>
          <td height="24" width="5%">&nbsp;</td>
          <td height="24" width="89%"><b><a href="Adm_UC.asp">User Coordinator</a></b></td>
        </tr>
        <tr> 
          <td height="24" width="6%">&nbsp;</td>
          <td height="24" width="5%">&nbsp;</td>
          <td height="24" width="89%">Maintain user coordinator table</td>
        </tr>
        <tr>
          <td width="6%">&nbsp;</td>
          <td width="5%">&nbsp;</td>
          <td width="89%">&nbsp;</td>
        </tr>
        <tr> 
          <td height="24" width="6%">&nbsp;</td>
          <td height="24" width="5%">&nbsp;</td>
          <td height="24" width="89%"><b><a href="Adm_Authority.asp">Authority 
            Level</a></b></td>
        </tr>
        <tr> 
          <td height="24" width="6%">&nbsp;</td>
          <td height="24" width="5%">&nbsp;</td>
          <td height="24" width="89%">Configure main authority for executive, 
            managers, and senior staff</td>
        </tr>
        <tr> 
          <td width="6%">&nbsp;</td>
          <td width="5%">&nbsp;</td>
          <td width="89%">&nbsp;</td>
        </tr>
        <tr> 
          <td height="24" width="6%">&nbsp;</td>
          <td height="24" width="5%">&nbsp;</td>
          <td height="24" width="89%"><b><a href="Fin_authority.asp">Financial 
            Authorities</a></b></td>
        </tr>
        <tr> 
          <td height="24" width="6%">&nbsp;</td>
          <td height="24" width="5%">&nbsp;</td>
          <td height="24" width="89%">Configure financial authorities</td>
        </tr>
        <tr> 
          <td height="24" width="6%">&nbsp;</td>
          <td height="24" width="5%">&nbsp;</td>
          <td height="24" width="89%">&nbsp;</td>
        </tr>
        <tr> 
          <td height="24" width="6%" bgcolor="#dde7ff"><font color="#000000"></font></td>
          <td height="24" colspan="2" bgcolor="#dde7ff"><b><font color="#000000">Preferences</font></b></td>
        </tr>
        <tr> 
          <td height="6" width="6%">&nbsp;</td>
          <td height="6" width="5%">&nbsp;</td>
          <td height="6" width="89%">&nbsp;</td>
        </tr>
        <tr> 
          <td height="24" width="6%">&nbsp;</td>
          <td height="24" width="5%">&nbsp;</td>
          <td height="24" width="89%"><a href="Adm_Pref.asp"><b>System Preferences 
            </b></a></td>
        </tr>
        <tr> 
          <td height="24" width="6%">&nbsp;</td>
          <td height="24" width="5%">&nbsp;</td>
          <td height="24" width="89%">Setup system configuration</td>
        </tr>
        <tr> 
          <td height="6" width="6%">&nbsp;</td>
          <td height="6" width="5%">&nbsp;</td>
          <td height="6" width="89%">&nbsp;</td>
        </tr>
        <tr> 
          <td height="24" width="6%">&nbsp;</td>
          <td height="24" width="5%">&nbsp;</td>
          <td height="24" width="89%">&nbsp;</td>
        </tr>
        <tr> 
          <td height="24" width="6%">&nbsp;</td>
          <td height="24" width="5%">&nbsp;</td>
          <td height="24" width="89%">&nbsp;</td>
        </tr>
        <tr> 
          <td height="2" width="6%">&nbsp;</td>
          <td height="2" width="5%">&nbsp;</td>
          <td height="2" width="89%">&nbsp;</td>
        </tr>
      </table>
    </td>
  </tr>
  <tr> 
    <td width="4%">&nbsp;</td>
    <td width="2%" bgcolor="#FFFFFF">&nbsp;</td>
    <td bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
  <tr> 
    <td width="4%">&nbsp;</td>
    <td width="2%" bgcolor="#FFFFFF">&nbsp;</td>
    <td bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
</table>
<br>

</body>
</html>
